<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: libowu
  Date: 19-1-13
  Time: 下午1:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>

    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">

    <style>
        fu_appparent{
            height: 100%;
            width: 100%;
        }
        .fu-app{
            height: 80px;
            width: 90px;
            align-content: center;
            justify-content: center;
            float: left;
            margin-left: 40px;
            margin-bottom: 20px;
            margin-top: 20px;
            transform: scaleX(1) scaleY(1);
            transition-duration:0.5s;
            cursor: pointer;
        }

        /*鼠标移入动画*/
        .fu-app:hover{
            transform: scaleX(1.2) scaleY(1.2);
            transition-duration:0.5s;
        }

        .fu-app .fu-appimgparent{
            height: 60px;
            width: 90px;
            clear: both;
            text-align: center;
            align-content: center;
            justify-content: center;
        }

        .fu-app .fu-appimgparent img{
            width: 70%;
            height: auto;
        }

        .fu-app  .fu-apptitle{
            display: block;
            width: 90px;
            height: 20px;
            clear: both;
            text-align: center;
        }
    </style>
</head>
<body>
<div class="fu_appparent">
    <c:forEach items="${appMenu}" var="app">
        <div class="fu-app" onclick="sendTo('${app.appurl}','${app.appname}')">
            <div class="fu-appimgparent">
                <img src="${app.appimg}"/>
            </div>
            <span class="fu-apptitle">${app.appname}</span>
        </div>
    </c:forEach>

    <script type="text/javascript">
        function sendTo(url,name){
            parent.openApp(url,name)
        }

        if ('${login}'=='login'){
            parent.sengToLogin();
        }
    </script>
</div>
</body>
</html>
